home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / WORDMISC / FLYDEMON.LZH / FLY_UTIL.DOC < prev    next >
Text File  |  2001-01-01  |  16KB  |  334 lines

  1. Introduction (and a little rattling of the cup...)
  2.  
  3.      st/exp represents a new level of performance for text data compression,
  4. typically compressing text files to about 30% of their original size.
  5. However, high throughput is not sacrificed in the process; it is competitive
  6. in speed with the best programs based upon the vastly simpler Limpel-Ziv
  7. algorithm.
  8.  
  9.      I believe it recognizes a point seemingly passed over in all the other
  10. attempts at text data compression that I know of.  Namely, that the pursuit
  11. of ever higher storage capacities without, at the same time, addressing more
  12. convenient information ACCESS, is ultimately a pursuit that will end in
  13. chaos.  The word-orientation of st/exp's compression technique provides the
  14. "hooks" to address exactly this issue of convenient information access.
  15.  
  16.      But, st/exp is not all there is to this package.  There's also what I
  17. consider to be a great little utility, albeit a DIFFERENT little utility,
  18. that takes a lot of the busywork out of word-processing.  I'm using it right
  19. now, along with Microsoft Word, to write this.  It's called Typing Demon.
  20.  
  21.      If you take a little time to understand what it does, I suspect that
  22. you'll like it, too.  If you just jump into it, it will probably beep at you
  23. a lot, and you'll probably find it weird and frustrating.  It's really not
  24. that difficult to get used to.  Getting used to not having it, if someone
  25. shoves you onto a VAX or something, would be more difficult.
  26.  
  27.      There's also a nice directory program, as well as a number of other
  28. programs which, likely as not, duplicate programs you already have.
  29.  
  30.      If you find these programs useful, a contribution of $25 will be
  31. greatly appreciated.  For $50, you will be registered and will receive the
  32. next program update, with manual, at no additional cost.  Quantity discounts
  33. and site licensing can be worked out for anyone that gets really serious
  34. about it.
  35.  
  36.      st/exp was definitely NOT a hobbyist effort.  I'm trying to do this for
  37. a living.  With your support, Bartles and James has been able to bring you
  38. an ever-expanding array of different-flavored wine coolers.  Also with your
  39. support, I will be able to continue to develop this basic technology into
  40. something that will be even more useful and interesting, which will
  41. ultimately save YOU money!  You can send your INVESTMENT to:
  42.  
  43.      MicroComputer Square
  44.      126 Hancock Avenue
  45.      Spartanburg, SC  29302
  46.  
  47. and THANKS!!!
  48.  
  49.  
  50.      PLEASE NOTE that your contribution entitles you to ALL of the programs
  51. listed below, even though the package may be broken up in archives named
  52. fly_util.arc, flydemon.arc, and flystexp.arc, to allow downloading in smaller
  53. "bytes".
  54.  
  55.  
  56. Now the Manual
  57.  
  58. The following programs and files should be found on the distribution disks:
  59.  
  60. ask_demo.bat  -- provides a demonstration of the ask program
  61. ask.exe       -- a UNIX-style utility for use in batch files
  62. d.exe         -- a directory program you'll like
  63. hide.exe      -- changes the attribute of the specified file to "hidden"
  64. hunt.exe      -- a file-name finder utility
  65. look4.exe     -- searches for any file containing a specified text string
  66. mc2sp.exe     -- Installs MicroComputer Square's sexy prompt
  67. newdate.exe   -- changes the file date/time of the specified files
  68. unhide.exe    -- changes the attribute of the specified file to "normal"
  69. volname.exe   -- allows you to name/rename a disk (hard or floppy) volume
  70.  
  71. All of the above programs provide at least minimal instruction as to how to
  72. run them, simply by typing their program name (followed by return).  One
  73. exception is mc2sp, which simply does its thing (which is to write a prompt
  74. command to your autoexec file).  The other exception is d, our directory
  75. program.  d will provide rather complete help, by typing "d h", or "d ?".
  76.  
  77. These files are in the directory "DEMON"
  78.  
  79. demon.exe     -- the Typing Demon program
  80. linguist.exe  -- a vocabulary-analysis program for use with Typing Demon
  81. mk_demon.exe  -- a "compiler" program to generate your own list of demons
  82.                    and abbreviations for use with Typing Demon
  83. setdemon.exe  -- configures Typing Demon according to its options
  84.  
  85. demons.fly    -- the compiled distribution "demons file" for fanatics
  86. template.fly  -- the ASCII source file for the above
  87. demons.qwe    -- the compiled demons file for the QWERTY keyboard
  88. template.qwe  -- the ASCII source file for the above
  89.  
  90. As above, most of these programs provide some minimal help by typing their
  91. program name.  The Typing Demon program, however, simply installs itself in
  92. memory when its name is typed.
  93.  
  94. These files are in the directory "STEXP"
  95.  
  96. st.exe        -- the FlySpeed compression program
  97. exp.exe       --  "     "     expansion program
  98. flyspeed.mc2  -- FlySpeed's dictionary data file
  99.  
  100. st/exp will tell you that you need to specify a file-specification, if you
  101. simply type their program name, followed by return.
  102.  
  103.  
  104. The Utility Programs
  105.  
  106. ask_demo
  107. ask
  108.  
  109.      The "ask" program simply regurgitates its argument when it is run,
  110. then, it waits for you to type a number.  It then sets DOS's ERRORLEVEL to
  111. this number.  The batch file ask_demo, which may be run simply by typing
  112. "ask_demo", illustrates its use in batch files (I can't think of any other
  113. use for "ask").
  114.  
  115. The Directory Program (d.exe)
  116.  
  117.      d, our directory program, is the result of an intense, two-week pro-
  118. gramming effort, undertaken so as to preserve this writer's own personal
  119. sanity, as files written during the development of st/exp proliferated
  120. beyond the control of the DOS "dir" command.  It actually reads the
  121. directory directly, rather than going through DOS, so as to circumvent a
  122. bug, in DOS 2.0 at least, which prevents the complete reading of volume
  123. names which include a space.
  124.  
  125.      It will work best on systems with a monochrome display, since, in that
  126. case, it writes directly to video memory.  With other display cards, it uses
  127. the BIOS display driver, which is much slower.  If we can manage to make
  128. money selling our software on the mass market, before long we'll get around
  129. to writing direct-memory video drivers for other common displays as well.
  130.  
  131.      d provides a number of friendly features not to be had with the DOS
  132. "dir" command, such as providing the directory sorted in order of file
  133. extension (the default), file name, file date, file time, or file size.
  134. And, unlike the DOS directory command, or the directory program provided in
  135. the Norton Utilities, for example, which simply scroll off the screen as
  136. they go along, it allows you to page back and forth through a large direc-
  137. tory as long as you feel like looking at it.
  138.  
  139.      The directory program also performs some data reduction (not data
  140. compression- that's the job of st/exp) on the file date and time fields.
  141. This is valuable in reducing the visual clutter of the directory listing,
  142. particularly when you sort by the date and time.  It makes it possible to
  143. see, at a glance, what files were created or modified on a certain day,
  144. month, etc.  And, again in contrast with the DOS directory command, the date
  145. and time fields immediately follow the file name field, since creation date
  146. is generally of more interest than the file size.
  147.  
  148.      One common reason for sorting by file date is when you're trying to
  149. find some file you were recently working on, but whose name you can't quite
  150. remember!  By sorting according to file date, you can see immediately which
  151. files have been recently modified.  Sorting by file date may also be of
  152. value when it's time to do your "Spring cleaning".
  153.  
  154.      The directory program is basically self-explanatory, by means of its
  155. built-in help, which is accessed by typing:
  156.  
  157.      "d h" or "d ?".
  158.  
  159.      One thing that Help doesn't explain is the first field of the directory
  160. listing, which indicates the file attribute (if any).  The most common file
  161. attribute is the "file dirty" attribute, indicated by a little tick mark.
  162. This indicates that the file has been modified since last being backed up to
  163. floppy disk with the DOS backup utility, or some other backup program.
  164.  
  165.      Occasionally, you may see an "h" in this field, indicating a "hidden"
  166. file.  The copy-protection used by Lotus 123, which allows you to run 123 on
  167. a hard-disk without booting from a floppy, writes some files with the hidden
  168. attribute, which d nonetheless will display.  Conceivably, you may also see
  169. an "r" for "read-only" file, or an "s", for "system" file.
  170.  
  171.      At the end of the listing of normal files, you may also see a
  172. backslash, "\", in the attribute field.  This is used to indicate
  173. subdirectories.
  174.  
  175. hide
  176.  
  177.      hide will simply change the attribute of a file to "hidden".  If you
  178. can't think of what to use it for, you probably don't greatly need it.
  179.  
  180. hunt
  181.  
  182.      hunt is a very useful program for people with hard-disks, and imperfect
  183. memories.  You specify a file-specification (i.e., hunt invoices.*), and
  184. hunt will tell you where on your hard-disk (what directories) all the files
  185. are that match that file-specification.
  186.  
  187. look4
  188.  
  189.      look4 can also be a useful program.  However, in contrast to hunt,
  190. look4 actually looks for specific text (hunt, also, will search your entire
  191. disk volume, whereas look4 only searches the file-specifications you give
  192. it).  If you remember writing a letter to your town council about their
  193. proposal to raise the sewer tax, but you can't remember the name you gave
  194. that file, you can simply type:
  195.  
  196.      look4 "sewer tax" *.doc \susan\*.doc
  197.  
  198. and look4 will search all the files in the current directory, as well as the
  199. directory "susan", having the extension "doc", for text having the phrase
  200. "sewer tax" in it.  The phrase may even include a quotation mark, i.e.,
  201.  
  202.      look4 "Mark said, "Well, gee" *.*
  203.  
  204. The text to be searched for is defined by what's between the first and last
  205. quotation marks.
  206.  
  207. mc2sp
  208.  
  209.      mc2sp installs MicroComputer Square's sexy prompt in your autoexec
  210. file.  With the mc2sp, the time of day, the date, and the current directory
  211. are all displayed, and the DOS cursor is on the line below.
  212.  
  213.      It is reasonably common to see someone using the prompt command to
  214. display the current directory.  My objection to the way it's usually done,
  215. is that the DOS cursor will vary its column position on the screen, de-
  216. pending upon how many letters are in the subdirectory name.  I find that a
  217. little disconcerting.  By putting the cursor on the next line, however, the
  218. DOS cursor will always be at the same column position on the screen, just
  219. like the "glass TTY" C> prompt (which is a vestige left over from CP/M days,
  220. for those of you who may have heard of CP/M).
  221.  
  222.      You need to run mc2sp only once in order to install the prompt command,
  223. unless you accidentally delete your autoexec file sometime later.  Each time
  224. your computer boots up thereafter, you will get the time, date, and current
  225. subdirectory displayed as part of the DOS prompt.
  226.  
  227.      You may use your editor or word-processor program to modify the prompt
  228. command.  The "standard" version displays a prompt such as:
  229.  
  230.      11:38\   Sun  3-27   \lattice\c
  231.  
  232. You may wish to change this to
  233.  
  234.       2:15\   Sat  6-15   Current directory is \honolulu\hawaii
  235.  
  236. by editing the prompt command in your autoexec file, or, better yet, kissing
  237. it off for awhile.
  238.  
  239.      If you decide you don't want a prompt which displays the time, date,
  240. and current directory, use your text editor, or word-processing program, to
  241. delete the prompt command from your autoexec file.
  242.  
  243. A Programmer's Tip
  244.  
  245.      A good, cheap way to accurately time the execution of a program is to
  246. set the system prompt with the following:
  247.  
  248.      prompt $t\
  249.  
  250.      Then you create a simple batch file to invoke your program, with
  251. whatever arguments are appropriate.  When you run the batch file, it will
  252. rapidly invoke your program, displaying the system time (accurate to a
  253. hundredth of a second) before and after running the program.
  254.  
  255.      It can take a fraction of a second for DOS to do the prompt, and a few,
  256. to several, seconds for DOS to load your program, so, if you're interested
  257. in extreme accuracy, you can temporarily modify your program to immediately
  258. terminate, and thus measure the "DOS overhead".
  259.  
  260.      The Norton Utilities has a program for performing this timing function,
  261. but it operates not nearly so directly, neatly, or accurately.
  262.  
  263. newdate
  264.  
  265.      newdate allows you to change the file date and time of the specified
  266. files.  The primary reason someone would want to do this is if their com-
  267. puter clock battery ran down, and they ended up with a number of files with
  268. a January 1, 1980, file date, which may be annoying to see in a directory
  269. listing.
  270.  
  271.      newdate was used to set the file times of the FlySpeed distribution
  272. files to Jan. 1, 2001, by typing
  273.  
  274.      newdate *.exe ask_demo.bat
  275.  
  276. newdate then asks you if you want to use the current system time, or if you
  277. want to specify the time to use.
  278.  
  279. unhide
  280.  
  281.      unhide is somewhat the counterpart of hide: it changes the attribute of
  282. the specified file to "normal".  This is occasionally useful if you have a
  283. hidden file in a subdirectory that you want to delete from your disk.  DOS
  284. will not allow to remove a subdirectory which is not empty, nor will it
  285. allow you to delete, copy, etc., a file which is hidden.  Unhide will turn
  286. the file into a normal file which can then be deleted.  Then, once the sub-
  287. directory is empty, you can remove it.
  288.  
  289. Example:    unhide 123.scr
  290.  
  291.      Be CAREFUL however!  Hidden files are used by Lotus 123, as one exam-
  292. ple, for their hard-disk copy protection technique.  If you delete it from
  293. your disk, you may be without your Lotus program for awhile.
  294.  
  295. volname
  296.  
  297.      volname allows you to name/rename a hard or floppy-disk volume.  You
  298. simply type
  299.  
  300.      volname a:MegaCorp
  301.  
  302. in order to label the floppy disk in the a: drive as volume "MegaCorp".  Any
  303. characters, up to 11, may be used for a volume name.  You may even include
  304. IBM "extended" ASCII characters in the name, by holding down the Alt-key,
  305. and typing the base-10 numerical value of the code on the number key-pad.
  306.  
  307.  
  308. Installation
  309.  
  310.      Most FlySpeed programs are programs you will want to run without
  311. actually having to be in the directory in which they are located.  I have
  312. two subdirectories, one named "dos" and the other named "batch", which I
  313. have made "globally visible" (I can invoke the programs and batch files in
  314. them no matter what the current subdirectory may be) by means of a path
  315. command (see your DOS manual if you don't know what that is).  I think it
  316. would be just as good to lump them all together in a directory named
  317. "global", for that matter.  Listed below is the recommended place to put the
  318. various programs, where "global" means some directory which is normally
  319. included in a path command (which you will probably have in your
  320. autoexec.bat file).
  321.  
  322. ask_demo.bat  -- Since this is for demonstration purposes, you don't really
  323.                    need it on your disk.
  324. ask           -- global (if you intend to use the program)
  325. d             -- global
  326. hide          -- global
  327. hunt          -- global
  328. look4         -- global
  329. mc2sp         -- Since you only need to run this program once, just copy it
  330.                    to your hard-disk, run it, then delete it.
  331. newdate       -- global
  332. unhide        -- global
  333. volname       -- global
  334.